<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>OA系统</title>
    <script src="https://g.alicdn.com/dingding/dingtalk-pc-api/2.7.0/index.js"></script>
</head>
<body>
<div style="text-align: center">
    跳转中...
</div>
<script>
    DingTalkPC.runtime.permission.requestAuthCode({
        corpId: "{$corpId}", //企业ID
        onSuccess: function (result) {
            DingTalkPC.biz.util.openLink({
                url: "{$jumpUrl}?code=" + result.code
            })
        },
        onFail: function (err) {
            DingTalkPC.device.notification.alert({
                message: "登陆错误，无法获取code,错误信息：\n" + JSON.stringify(err),
                title: "提示",//可传空
                buttonName: "收到"
            });
        }

    });
</script>
</body>
</html>